package com.itheima;

/**
 * @Auther: shiquan
 * @Date: 2024/10/24 - 10 - 24 -14:19
 */
public class MathDemo4 {
   //判断一下为什么没有两位自然数 1 100
   public static void main(String[] args) {
       int count = 0;
       for (int i = 1; i < 100; i++) {
           int ge =i%10;
           int shi =i/10%10;
           if (ge*ge+shi*shi==i){
               System.out.println(i);
               count++;
           }
       }
       System.out.println("有几个自然数:+count");
   }
}
